<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%-- 静态包含 --%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>头部-有点</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<script type="text/javascript">
    function delete1(){
    	var res=window.confirm("您确定要删除吗？");
    	return res;
    }
</script>
</head>

<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">客户管理</a>&nbsp;-</span>&nbsp;客户查询
			</div>
		</div>
		<div class="page">
			<!-- user页面样式 -->
			<div class="connoisseur">
				<div class="conform">
					<form action="${rootPath }/queryuser.html" method="post">
						<div class="cfD">
							<input name="profession" class="userinput vpr" type="text"
								placeholder="输入职位" /> <input name="phone" class="userinput vpr"
								type="text" placeholder="输入联系电话" />&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;<br />
							<br /> <br /> <input name="identity" class="userinput vpr"
								type="text" placeholder="输入身份证" /> <input name="address"
								class="userinput vpr" type="text" placeholder="输入地址" />&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;<br />
							<br /> <br /> <select name="sex">
								<option>"请选择性别"</option>
								<option value="1" ${requestScope.gender == '1' ? 'selected' : ''}>男</option>
								<option value="2" ${requestScope.gender == '2' ? 'selected' : ''}>女</option>
							</select> <input name="name" class="userinput vpr" type="text" placeholder="输入姓名" />&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;<br />
							<br /> <br />
							<button class="userbtn" type="submit">查询</button><br /><br /><br />
						</div>
					</form>
				</div>
				<!-- user 表格 显示 end-->
			</div>
			<!-- user页面样式end -->
		</div>
		<table border="1" cellspacing="0" cellpadding="0">
			<tr>
				<td width="66px" class="tdColor tdC">序号</td>
				<td width="355px" class="tdColor">身份证</td>
				<td width="260px" class="tdColor">姓名</td>
				<td width="275px" class="tdColor">性别</td>
				<td width="290px" class="tdColor">电话</td>
				<td width="290px" class="tdColor">职业</td>
				<td width="130px" class="tdColor">操作</td>
			</tr>
			<c:forEach items="${requestScope.userList}" var="users"
				varStatus="stat">
				<tr>
					<td width="66px" class="tdColor tdC">${stat.count}</td>
					<td width="355px" class="tdColor">${users.identity}</td>
					<td width="260px" class="tdColor">${users.name}</td>
					<td width="275px" class="tdColor">${users.sex == '1' ? '男' : '女'}</td>
					<td width="290px" class="tdColor">${users.phone}</td>
					<td width="290px" class="tdColor">${users.profession}</td>
					<td><a href="${rootPath }/deleteusers.html?identity=${users.identity}" onclick='return delete1()'> <img class="operation delban"
						src="img/delete.png"></td></a>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>